Resource URL: /platform/<<version=3>>/upgrade/cluster/patch/patches/<ID>

    Overview: This resource applies the standard collection pattern to
              individual OneFS software patches.

     Methods: GET, DELETE

********************************************************************************

Method GET: View a single patch.

       URL: GET /platform/<<version=3>>/upgrade/cluster/patch/patches/<ID>

Query arguments:
  local=<boolean> Only view patch information on the local node.
location=<string> Path location of patch file.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "patches": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "A software patch that can be applied to OneFS.", 
            "properties": {
              "comment": {
                "type": "string", 
                "description": "A long comment about the patch."
              }, 
              "files": {
                "items": {
                  "type": "object", 
                  "properties": {
                    "path": {
                      "type": "string", 
                      "description": "The path of the file."
                    }, 
                    "md5": {
                      "type": "string", 
                      "description": "The md5 checksum of the file."
                    }
                  }
                }, 
                "type": "array", 
                "description": "The files contained in this patch."
              }, 
              "description": {
                "type": "string", 
                "description": "A short description of the patch."
              }, 
              "reboot": {
                "type": "string", 
                "description": "Describes the reboot requirements"
              }, 
              "services": {
                "items": {
                  "type": "object", 
                  "properties": {
                    "description": {
                      "type": "string", 
                      "description": "Description of the affected service"
                    }, 
                    "name": {
                      "type": "string", 
                      "description": "Name of the affected service"
                    }
                  }
                }, 
                "type": "array", 
                "description": "The services affected during the patch deployment"
              }, 
              "dependencies": {
                "items": {
                  "type": "string"
                }, 
                "type": "array", 
                "description": "Other patches that this patch depends on."
              }, 
              "status": {
                "type": "string", 
                "description": "The intallation status of this patch on the cluster."
              }, 
              "conflicts": {
                "items": {
                  "type": "string"
                }, 
                "type": "array", 
                "description": "Other patches that this patch conflicts with."
              }, 
              "nodes": {
                "items": {
                  "type": "integer"
                }, 
                "type": "array", 
                "description": "The nodes that this patch is installed on."
              }, 
              "id": {
                "type": "string", 
                "description": "A unique identifier for the patch."
              }, 
              "name": {
                "type": "string", 
                "description": "The name of the patch."
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }
      }
    }
  ]
}

********************************************************************************

Method DELETE: Uninstall a patch.

          URL: DELETE /platform/<<version=3>>/upgrade/cluster/patch/patches/<ID>

Query arguments:
 rolling=<boolean> Whether to uninstall the patch on one node at a time.
                   Defaults to true.
override=<boolean> Whether to ignore patch system validation and force the
                   uninstallation.

There is no JSON response body for this method.
